package com.yupi.springbootinit.model.dto.grinding;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yupi.springbootinit.common.PageRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * 磨床记录查询请求
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class GrindingRecordQueryRequest extends PageRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 工艺单号
     */
    private String processSheetNo;

    /**
     * 机台号
     */
    private String machineNo;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 基板编号
     */
    private String substrateNo;

    /**
     * 操作人
     */
    private String operator;

    /**
     * 开始日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "GMT")
    private LocalDate startDate;

    /**
     * 结束日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "GMT")
    private LocalDate endDate;
}